package com.google.code.spidertr;

import java.util.List;
import java.util.Vector;

/**
 * @author ibrahim
 * 
 */
public class Crawler {

	/**
	 * Spiders of Crawler
	 */
	private List<Spider> spiders;

	/**
	 *Return new Crawler.
	 */
	public Crawler() {
		spiders = new Vector<Spider>();
	}

	/**
	 * Add new Spider to Crawler.
	 * 
	 * @param spider
	 *            Spider
	 */
	public void addSpider(Spider spider) {
		spiders.add(spider);
	}

	/**
	 * Return spiders of Crawler.
	 * 
	 * @return
	 */
	public List<Spider> getSpiders() {
		return this.spiders;
	}

	/**
	 * Remove given spider from Crawler...
	 * 
	 * @param spider
	 */
	public void removeSpider(Spider spider) {
		this.spiders.remove(spider);
	}

}
